package com.thefirststage.module4;
/*
编写一个WorkerTest类
 */
public class WorkerTest {
    public static void main(String[] args) {

        Worker w1= null;
        try {
            w1 = new Worker("小翁",18);
        } catch (AgeException e) {
            e.printStackTrace();
        }
        System.out.println("w1="+w1);
    }


}
